from websocket import create_connection

#建立一个websocket连接
ws = create_connection("ws://47.106.8.121:25631/")

#接返回的数据
while(1):
    #对websocket客户端发送一个请求
    ws.send(input())
    result = ws.recv()
    print(str(result))
